#ifndef  _LINK_H_
#define  _LINK_H_

typedef struct linkdata{
	char buf[128];
	int len;
	int fd;
	int flag;
}LinkData;

typedef struct link{
	LinkData   data;
	struct link *next;
}Link;

Link *CreateLinkHead();
Link *SearchLinkNode(Link *list, int value);
int InsertLinkNode(Link *list, const LinkData data);
int DeleteLinkNode(Link *list,int value);
int ChangeNodeData(Link *list, const LinkData data);
int ChangeNodeFlag(Link *list, const int fd, int flag);
int GetNodeFlag(Link *list, const int fd);
int ClearLink(Link *list, int epfd);

#endif

